package com.cy.pj.sys.exception;

/**
 * 定义业务异常对象
 * 自己定义的异常对象都建议
 * 直接或间接的继承RuntimeException，非检查异常，运行时异常
 * 添加构造方法（父类构造方法）
 */
public class ServiceException extends RuntimeException {

    public ServiceException() {
    }

    public ServiceException(String message) {
        super(message);
    }

    public ServiceException(String message, Throwable cause) {
        super(message, cause);
    }

    public ServiceException(Throwable cause) {
        super(cause);
    }

    public ServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

}
